package com.om.abom.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("upgrade_record")
public class UpgradeRecordEntity implements Serializable
{
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private Long backupServer;

    private String backupPath;

    private LocalDateTime upgradeTime;

    // 更新记录的类型（1：更新，2：还原）
    private int upgradeType;

    // 还原记录的更新记录的 id（还原记录还原的是哪条更新记录）
    private Long upgradeRecordIdForRestoreRecord;

    // 还原记录的 id
    private Long restoreRecordId;
}
